Skip to main content

All Questions

5votes
3answers
1kviews

Can a function be pure if it depends on an immutable instance field?

In the following c# code example, the instance field [name] is readonly, and therefore is immutable after class construction. public sealed class Example { public readonly string name; ...
Rock Anthony Johnson's user avatar

close